package ch6;

import java.util.Scanner;

public class AvgScore {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("输入30人成绩：");
		int total = 0;
		for (int i = 1; i <= 30; i++) {
			int num = in.nextInt();
			total += num;
		}

	}

}
